package com.jnzc.ocr.serv.shop.api.impl;

import com.jnzc.ocr.serv.shop.api.ShopOrderSaleDetailApi;
import com.jnzc.ocr.serv.shop.entity.ShopOrderSaleDetail;
import com.jnzc.ocr.serv.shop.service.ShopOrderSaleDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017-10-06
 */
@RestController
public class ShopOrderSaleDetailApiImpl implements ShopOrderSaleDetailApi {

    @Autowired
    private ShopOrderSaleDetailService shopOrderSaleDetailService;

    @Override
    public List<ShopOrderSaleDetail> list(Long orderId) {
        return shopOrderSaleDetailService.list(orderId);
    }
}
